package com.wxsoft.business.sys.dao;


import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wxsoft.business.model.easyui.PageHelper;
import com.wxsoft.business.sys.pojo.SysMenu;

public interface ISysMenuDao {


	long findCount(@Param("sysMenu")SysMenu sysMenu);

	List<SysMenu> findAll(@Param("page")PageHelper page,@Param("sysMenu")SysMenu sysMenu);
	
	public int insert(@Param("sysMenu")SysMenu sysMenu);
	
	public int modify(@Param("sysMenu")SysMenu sysMenu);
	
	public int delete(@Param("sysMenu")SysMenu sysMenu);

	/**
	 * 获取菜单byuserId
	 * @param userId
	 * @return
	 */
	public List<SysMenu> getMenuByUserId(@Param("userId")String userId);
	/**
	 * 获取菜单by
	 * @param userId
	 * @return
	 */
	public List<SysMenu> getMenuBy(@Param("sysMenu")SysMenu sysMenu);

	public List<SysMenu> getMenuByRole(@Param("role_code")String role_code);
}
